//
//  NSURLSessionTask+operation.h
//  nbUtil
//
//  Created by 相颖 on 16/7/11.
//  Copyright © 2016年 相颖. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFHTTPRequestOperation.h"

typedef void(^NSURLSessionTaskCancelBlock)(void);

@interface NSURLSessionTask (operation)

@property(nonatomic,strong)AFHTTPRequestOperation *operation;
@property(nonatomic,copy)NSURLSessionTaskCancelBlock cancelBlock;
@property (nonatomic, strong) NSString *requestId;

- (void)nbCancel:(void (^)(void))completionHandler;

@end
